<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<LINK rel="Bookmark" href="/favicon.ico" >
<LINK rel="Shortcut Icon" href="/favicon.ico" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="__ROOT__/Public/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="__ROOT__/Public/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="__ROOT__/Public/lib/Hui-iconfont/1.0.7/iconfont.css" />
<link rel="stylesheet" type="text/css" href="__ROOT__/Public/lib/icheck/icheck.css" />
<link rel="stylesheet" type="text/css" href="__ROOT__/Public/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="__ROOT__/Public/static/h-ui.admin/css/style.css" />
<link href="__ROOT__/Public/lib/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<!--/meta 作为公共模版分离出去-->

<title>修改产品 - 产品管理 - 瞳年眼镜</title>
<meta name="keywords" content="">
<meta name="description" content="">
</head>
<body>
<article class="page-container">
	<form class="form form-horizontal" id="form-article-add" action="{:U('Goods/update')}" method="post" enctype="multipart/form-data">
		<input type="hidden" name="id" value="{$v.id}">
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>产品名称：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input required type="text" class="input-text" value="{$v.gname}" name="gname">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>分类：</label>
			<div class="formControls col-xs-8 col-sm-9"> <span class="select-box">
				<select name="cid" class="select">
					
					<foreach name="cate" item="c">
					<option value="{$c.id}" {$c['id']==$v['cid']?'selected':''} {$c['end']?'':'disabled'}>{$c.name}</option>
					</foreach>

				</select>
				</span>
			 </div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>关键词：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input required type="text" class="input-text" value="{$v.keywords}" name="keywords">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>摘要：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input required type="text" class="input-text" value="{$v.description}" name="description">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>缩略图：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<div class="uploader-thum-container">
					<img src="/Public/Uploads/{$v.pic}">
					<input type="file" name="pic">
					<span class="c-red">上传图片最大1M，最佳分辨率200*250,仅支持jpg、gif、png格式图片</span>
				</div>
			</div>
		</div>
				<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>颜色：</label>
			<div class="formControls col-xs-4 col-sm-2">
				<input required type="text" class="input-text" value="{$v.color}" name="color">
			</div>
				<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>款式：</label>
			<div class="formControls col-xs-4 col-sm-2">
				<input required type="text" class="input-text" value="{$v.style}" name="style">
			</div>
		</div>

		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>边框：</label>
			<div class="formControls col-xs-4 col-sm-2">
				<input required type="text" class="input-text" value="{$v.frame}" name="frame">
			</div>
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>重量：</label>
			<div class="formControls col-xs-4 col-sm-2">
				<input required type="text" class="input-text" value="{$v.weight}" name="weight">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>专属定制：</label>
			<div class="formControls col-xs-4 col-sm-2">
				<input type="radio" class="input-radio" value="1" name="customization" {$v['customization']==1?'checked':''}>是
				<input type="radio" class="input-radio" value="0" name="customization" {$v['customization']==0?'checked':''}>否
			</div>
			<label class="form-label col-xs-3 col-sm-1"><span class="c-red">*</span>男女款：</label>
			<div class="formControls col-xs-4 col-sm-2">
				<input type="radio" class="input-radio" value="1" name="gender" {$v['gender']==1?'checked':''}>男款
				<input type="radio" class="input-radio" value="0" name="gender" {$v['gender']==0?'checked':''}>女款
			</div>
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>成人小孩：</label>
			<div class="formControls col-xs-4 col-sm-2">
				<input type="radio" class="input-radio" value="0" name="adult" {$v['adult']==0?'checked':''}>小孩
				<input type="radio" class="input-radio" value="1" name="adult" {$v['adult']==1?'checked':''}>成人
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>详情介绍：</label>
			<div class="formControls col-xs-8 col-sm-9"> 
				<script id="editor" type="text/plain" style="width:100%;height:400px;" name="direction">{$v.direction}</script>
			</div>
		</div>
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
				<button onClick="article_save_submit();" class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i> 修改</button>
				
				<input class="btn btn-default radius" type="reset"></input>
			</div>
		</div>
	</form>
</article>

<!--_footer 作为公共模版分离出去-->
<include file="Public:footer"/>
<!--/_footer /作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__ROOT__/Public/lib/My97DatePicker/WdatePicker.js"></script>  
<script type="text/javascript" src="__ROOT__/Public/lib/webuploader/0.1.5/webuploader.min.js"></script> 
<script type="text/javascript" src="__ROOT__/Public/lib/ueditor/1.4.3/ueditor.config.js"></script> 
<script type="text/javascript" src="__ROOT__/Public/lib/ueditor/1.4.3/ueditor.all.min.js"> </script> 
<script type="text/javascript" src="__ROOT__/Public/lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript">
$(function(){

	var ue = UE.getEditor('editor');
	
});
</script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>